package com.niit.springdemo001.dao.impl;

public class Employee {
    private int eid;
    private String ename;

    public Employee(int eid) {
        this.eid = eid;
    }

    public Employee(String ename) {
        this.ename = ename;
    }

    public Employee(int eid, String ename) {
        this.eid = eid;
        this.ename = ename;
    }

    private Employee(){
        System.out.println("default constructor...");

    }
    public void show(){
        System.out.println(eid+" "+ename);
    }

    @Override
    public String toString() {
        return "Employee{" +
                "eid=" + eid +
                ", ename='" + ename + '\'' +
                '}';
    }
}
